<template>
  <div style="float:right;margin-top:10px;">
      <a-pagination show-quick-jumper :default-current="1" :total="total" @change="onchangepage" />
  </div>
</template>

<script>
import { scrollTo } from "@/utils/scroll-to";
export default {
    props:{
      total:{
        type:String
      },
      page_size:{
        type:String
      }
    },
    created(){
      console.info(this.total,this.page_size,'toal')
    },
    methods:{
      onchangepage(e){
        // console.log(e);
        scrollTo(0,800)
        this.$emit('listNew',e,this.page_size)
      }
    }
}
</script>

<style>

</style>